package com.frost.demo.ioc.controller;

import com.frost.demo.ioc.model.UserInfo;
import com.frost.demo.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController2 {

    @Autowired
    private UserInfo userInfo;

    public void say() {
        System.out.println("hi,controller");
        System.out.println(userInfo.toString());
    }
}
